package com.qire.manhua.view.linkageBehaviors;

import android.view.View;

public interface CoordinatorWrapper {

    void setCoordinatorHeaderListener(CoordinatorHeaderListener headerListener);

    void setCoordinatorLayoutListener(CoordinatorLayoutListener layoutListener);

    interface CoordinatorHeaderListener<V extends View> {
        /**
         *
         * @param isDragging true 手指正在拖动 false 回弹动画
         * @param offSet
         */
        void onHeaderMoveChanged(V view, boolean isDragging, int offSet);
    }

    interface CoordinatorLayoutListener<V extends View> {
        /**
         *
         * @param view
         * @param offSet
         */
        void onLayoutMoveChanged(V view, int offSet);
    }

}
